
package oracle.apps.financials.collection.po;

import greendroid.widget.item.Item;
import greendroid.widget.itemview.ItemView;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.cyrilmottier.android.greendroid.R;


public class TextLabelItemView extends LinearLayout implements ItemView {

    private TextView mTextView;
    private TextView mLableView;

    public TextLabelItemView(Context context) {
        this(context, null);
    }

    public TextLabelItemView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public void prepareItemView() {
        mTextView = (TextView) findViewById(R.id.gd_text);
        mLableView = (TextView) findViewById(R.id.gd_lable);
    }

    public void setObject(Item object) {
        final TextLabelItem item = (TextLabelItem) object;
        mTextView.setText(item.text);
        mLableView.setText(item.label);
    }

}
